<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"   
   xmlns:h="http://java.sun.com/jsf/html"
   xmlns:ui="http://java.sun.com/jsf/facelets"
   xmlns:ace="http://www.icefaces.org/icefaces/components"
   xmlns:icecore="http://www.icefaces.org/icefaces/core">
   <h:body> 
      <ui:composition template="/WEB-INF/templates/adminuser/template.xhtml">
         <ui:define name="content">
              <h:form id="form-devices">
              	<icecore:singleSubmit />
                  <ace:dataTable id="user-list"
                                  value="#{usersListBean.sysUsers}"
                                  var="user">
                      <ace:column id="name-col" headerText="#{msgs['sysUser.username']}">
                           <h:outputText id="name-row" value="#{user.name}"/>
                      </ace:column>
                      <ace:column id="buttons-col" >
                           <h:commandButton  id="editBttn" value="#{msgs['sysUser.edit']}" action="userdata"
	                                         actionListener="#{user.edit}" disabled="#{sysOffOn.active}"/>
	                       <h:commandButton  id="deleteBttn" value="#{msgs['sysUser.delete']}" 
	                                         actionListener="#{user.delete}" disabled="#{sysOffOn.active}"/>
                      </ace:column>  
                  </ace:dataTable>    
                  <h:commandButton  id="newBttn" value="#{msgs['sysUser.new']}" action="userdata"
	                                         actionListener="#{usersListBean.newUser}" disabled="#{sysOffOn.active}"/>            
              </h:form>
         </ui:define>		
      </ui:composition> 
   </h:body> 
</html>	